再提一下Linux系统中的MD5校验

您所在的位置:网站首页 linux md5验证 再提一下Linux系统中的MD5校验

再提一下Linux系统中的MD5校验

2023-11-10 22:35| 来源: 网络整理| 查看: 265

MD5校验对于大多数人来说应该不陌生,像我这种小心翼翼的运维,在每次下载完公司发布的升级包之后第一件事就是MD5校验了,以前比较菜的时候总是在windows下校验完成了才上传到Linux服务器上,根本不知道Linux系统就自带了MD5校验工具,太low了!

[root@Geeklp-MD5 ~]# md5sum ntfs-3g_ntfsprogs-2017.3.23.tgz d97474ae1954f772c6d2fa386a6f462c ntfs-3g_ntfsprogs-2017.3.23.tgz [root@Geeklp-MD5 ~]# md5sum -b ntfs-3g_ntfsprogs-2017.3.23.tgz d97474ae1954f772c6d2fa386a6f462c *ntfs-3g_ntfsprogs-2017.3.23.tgz [root@Geeklp-MD5 ~]# md5sum -t ntfs-3g_ntfsprogs-2017.3.23.tgz d97474ae1954f772c6d2fa386a6f462c ntfs-3g_ntfsprogs-2017.3.23.tgz-b: 以二进制模式读入内容

-t: 以文本模式读入文件内容进行校验

虽然是不同的读入模式,但是在进行求md5的时候,是一样的。

查看帮助文档,

-b, --binary       

-c, --check        从文件中读取MD5 的校验值并予以检查       --tag            create a BSD-style

-t, --text        以纯文本模式读取(默认) Note: There is no difference between binary and text mode option on GNU system. The following four options are useful only when verifying checksums:       --quiet          don't print OK for each successfully verified file       --status         don't output anything, status code shows success       --strict         exit non-zero for improperly formatted checksum lines   -w, --warn           warn about improperly formatted checksum lines



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3